package com.moliku.insurance.model.dto.huaan.cancel;

import com.moliku.insurance.model.dto.InsuranceBaseParam;
import com.moliku.insurance.model.vo.huaan.HuaAnCancelVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("华安注销")
public class HuaAnCancelParam implements InsuranceBaseParam<HuaAnCancelVo> {

    @Override
    public Class<HuaAnCancelVo> responseType() {
        return HuaAnCancelVo.class;
    }

    @Override
    public String url() {
        return "/fc/nsp-confirm/cancelPolicy";
    }

    @Override
    public METHOD methodType() {
        return METHOD.POST;
    }

    @Override
    public FORMAT formatType() {
        return FORMAT.JSON;
    }

    @ApiModelProperty("渠道信息")
    @NotNull(message = "渠道信息为空")
    private HuaAnChannelParam channel;

    @ApiModelProperty("保单信息")
    @NotNull(message = "渠保单信息为空")
    private HuaAnCancelPolicyParam policy;

}
